package vsm.vsm_server.mapper;

import org.apache.ibatis.annotations.*;
import org.apache.ibatis.annotations.Mapper;
import vsm.vsm_server.pojo.Image.Image;

import java.math.BigInteger;

@Mapper
public interface ImageMapper {
    /*
    创建图片
     */
    @Insert("insert into image (title,path,type) values (#{title},#{path},#{type})")
    @Options(useGeneratedKeys = true,keyProperty = "imageId",keyColumn = "imageId")
    void createImage(Image image);
}
